package com.william.jdbcplus.test.entity;

import com.william.jdbcplus.common.annotation.*;
import com.william.jdbcplus.common.entity.Entity;
import com.william.jdbcplus.common.enums.IdType;
import com.william.jdbcplus.test.enums.TimeUnitEnum;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 实例单表
 *
 * @author niliwei
 */
@Data
@Table("sys_demo")
@ApiModel("实例表")
public class SysDemo implements Entity {

    @TableId(value = "id", type = IdType.SNOWFLAKE)
    private Long id;

    @TableFinal
    @TableColumn("code")
    private String code;

    private String name;

    /**
     * 时间单位
     */
    private TimeUnitEnum timeUnit;

    private Long num;

    @TableLogic
    private Integer delFlag;

}

